import { Controller } from 'egg';

export default class HomeController extends Controller {
  public async login() {
    const { ctx } = this;
    const res = await ctx.service.test.login(ctx.params.username,ctx.params.password);
    if(res){
      ctx.body = {
        success:200,
        result:true
      }
    }
  }
}
